package com.quickcancellation.crm.service.impl;

import com.quickcancellation.crm.pojo.dto.PageDto;
import com.quickcancellation.crm.pojo.entity.Productitem;
import com.quickcancellation.crm.mapper.ProductitemMapper;
import com.quickcancellation.crm.service.IProductitemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author baomidou
 * @since 2023-03-04
 */
@Service
public class ProductitemServiceImpl extends ServiceImpl<ProductitemMapper, Productitem> implements IProductitemService {

    @Resource
    private ProductitemMapper productitemMapper;


    @Override
    public List<Map<String, Object>> getProductItem2List(PageDto<Productitem> pageDto) {
        return productitemMapper.getProductItem2List(pageDto);
    }

    @Override
    public List<Map<String, Object>> getProductItem3List(PageDto<Productitem> pageDto) {
        return productitemMapper.getProductItem3List(pageDto);
    }

    @Override
    public Long getProductItem2ListCount(PageDto<Productitem> pageDto) {
         return productitemMapper.getProductItem2ListCount(pageDto);
    }

    @Override
    public Long getProductItem3ListCount(PageDto<Productitem> pageDto) {
        return productitemMapper.getProductItem3ListCount(pageDto);
    }
}
